﻿using System;
using Vepa.Server.Networking;
using log4net;
namespace Vepa.Server
{
    class Program
    {
        static TCPServer server;

        private static readonly ILog log = LogManager.GetLogger(typeof(Program));

        static void Main(string[] args)
        {
            log4net.Config.BasicConfigurator.Configure();

            VepaManager.Init();
            VepaManager.UpdateInterval = 10000;
            VepaManager.AutoUpdate = true;            
            server = new TCPServer();
            server.Start();

            log.Info("Program end. Press a button to exit.");
            Console.ReadKey();
        }
    }
}
